/**
 * Created by LeungZ on 2016/9/6.
 */
class Welcome {
    constructor(k8sList, dckList, sapList) {
        "ngInject";

        if(k8sList){
            this.k8sList = k8sList;
        }

        if(dckList){
            var icon=['centos.png','default.png','java.png','jenkins.png','jetty.png','mysql.png','redis.png','tomcat.png'];
            angular.forEach(dckList.list,(item,index)=>{
                item.imagepath=icon[index % icon.length];
            })
            this.dckList = dckList.list;
        }

        if(sapList){
            this.sapList = sapList.list;
        }
    }
}
export default Welcome;
